/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.ispviolation;

/**
 *
 * @author Sisanda
 */
public class ISender 
{
    String name;
    String emailAddress;
    String subject;
    String body;
    
    public void setDetails(Contacts cont,String subj,String bod)
    {
        name = cont.getName();
        emailAddress = cont.getEmail();
        this.subject = subj;
        this.body = bod;
        
        
    }
    public String GetMessage()
    {
        return "incoming message#Name=\""+name+"\"#To=\""+emailAddress+"\"#Subject=\""+subject+"\"#Body=\""+body+"\"";
    }
}
